package com.cntcdt.api.service.impl;

import java.util.List;

import com.cntcdt.api.db.dao.ConsociationCompanyDaySumDao;
import com.cntcdt.api.db.model.ConsociationCompanyDaySumModel;
import com.cntcdt.api.service.ConsociationCompanyDaySumService;

public class ConsociationCompanyDaySumServiceImpl implements ConsociationCompanyDaySumService{

	@Override
	public List<ConsociationCompanyDaySumModel> findByYesterday(String consociationCompanyId) {
		return ConsociationCompanyDaySumDao.getInstance().findByYesterday(consociationCompanyId);
	}

	@Override
	public List<ConsociationCompanyDaySumModel> findByThisMonth(String consociationCompanyId) {
		return ConsociationCompanyDaySumDao.getInstance().findByThisMonth(consociationCompanyId);
	}

	@Override
	public List<ConsociationCompanyDaySumModel> findByLastSevenDayData(String consociationCompanyId) {
		return ConsociationCompanyDaySumDao.getInstance().findByLastSevenDayData(consociationCompanyId);
	}

	@Override
	public List<ConsociationCompanyDaySumModel> findBySortTime(long sortTime,String consociationCompanyId) {
		return ConsociationCompanyDaySumDao.getInstance().findBySortTime(sortTime, consociationCompanyId);
	}

	@Override
	public List<ConsociationCompanyDaySumModel> findByDayNum(Integer dayNum,String terminal) {
		return ConsociationCompanyDaySumDao.getInstance().findByDayNum(dayNum, terminal);
	}

}
